<template>
	<view >
	    <button @click="open">打开弹窗</button>
	    <uni-popup ref="popup" type="bottom">
			<view>弹出层的顶部</view>
			<view class="popup_info">
				<scroll-view :scroll-top="0" scroll-y="true" >
					<view>
						<view class="popup_message">
							<view >activeName</view>
							<view >place</view>
							<view >item.startDate</view>
						</view>
					</view>
					<view>
						<view class="popup_message">
							<view >activeName</view>
							<view >place</view>
							<view >item.startDate</view>
						</view>
					</view>
					<view>
						<view class="popup_message">
							<view >activeName</view>
							<view >place</view>
							<view >item.startDate</view>
						</view>
					</view>
					<view>
						<view class="popup_message">
							<view >activeName</view>
							<view >place</view>
							<view >item.startDate</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
	   methods:{
		  open(){
			 this.$refs.popup.open()
		  }
	   },
		onLoad(e) {
			console.log(e.newsId)  //获取url中的所有参数，整理成一个对象了
			uni.request({
				url: 'https://unidemo.dcloud.net.cn/api/news/'+e.newsId,
				method: 'GET',
				data: {},
				success: res => {
					console.log(res)
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style scoped>

</style>